import 'package:citiesocial/beans/goods_entity.dart';

class CartEntity {
  String total; //关于我们链接地址
  List<GoodsEntity> list;
  CartEntity.fromJson(dynamic json) {
    if (json != null && json is Map) {
      total = json['total'];
      var goods = json['list'] as List ?? [];
      list = List();
      for (dynamic g in goods) {
        list.add(GoodsEntity.fromJson(g));
      }
    }
  }
}
